package com.gilgamesh.mall.product.service;

import com.gilgamesh.mall.sdk.bean.product.ImageEntity;
import com.gilgamesh.mall.sdk.bean.product.ProductEntity;
import com.gilgamesh.mall.sdk.dto.ResponseDTO;
import com.gilgamesh.mall.sdk.dto.product.ImageDTO;
import com.gilgamesh.mall.sdk.dto.product.ProductDTO;
import com.gilgamesh.mall.sdk.dto.product.Shop2DetailDTO;

import java.util.List;

/**
 * @author yanm
 * @date 2021/1/11 13:10
 **/
public interface ProductService {

    /**
     * 创建商品,同时更新productCode和skuCode
     *
     * @param
     * @return
     * @author yanm
     * @date 2021/1/11 13:11
     **/

    ResponseDTO<Integer> createProduct(ProductEntity productEntity);

    ResponseDTO<ProductDTO> getProductById(Long id);

    ResponseDTO<List<ProductDTO>> listProduct(ProductEntity productEntity);


    String getProductCode();

    String getSkuCode();

    ResponseDTO<ImageDTO> getImageName();


    List<ProductDTO> listProductV2();

    List<ProductDTO> guessYouLikeV2();

    List<ProductDTO> searchProductV2(String keyWord);

    Shop2DetailDTO detailPageV2(String productCode);
}
